﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Test02
    {
        static void Main(string[] args)
        {
            int number;

            Method(out number);

            void Method(out int myRefInt)
            {
                myRefInt = 10;
            }

            Console.WriteLine(number);
        }
    }
}
